#ifndef LIGHT_H_
#define LIGHT_H_

#include <vmath.h>
#include <xmltree.h>

struct light;

struct light *lt_create(void);
void lt_free(struct light *lt);

int lt_set_type(struct light *lt, const char *type);

void lt_print_info(struct light *lt, FILE *fp);

int lt_from_xml(struct light *lt, struct xml_node *xml);
struct xml_node *lt_to_xml(struct light *lt);

vec3_t lt_get_point(struct light *lt);
vec4_t lt_get_color(struct light *lt);
vec4_t lt_get_color_att(struct light *lt, vec3_t pt);

#endif	/* LIGHT_H_ */
